package code.jzh.monitor.entity.methodinvoke;

import java.util.ArrayList;
import java.util.List;

import code.jzh.monitor.entity.Message;
import code.jzh.monitor.util.AgentConstants;


public class MethodChain extends Message {
	MessageInvokeRecord mir;
	List<MethodChain> methodChains;
	
	public MethodChain(){
		
	}
	
	public MethodChain(MessageInvokeRecord mir) {
		this.mir = mir;
		this.methodChains = new ArrayList<MethodChain>();
	}
	
	public MethodChain(MessageInvokeRecord mir, List<MethodChain> messageInvokeRecords) {
		this.mir = mir;
		this.methodChains = messageInvokeRecords;
	}

	public List<MethodChain> getMethodChains() {
		return methodChains;
	}

	public MessageInvokeRecord getMir() {
		return mir;
	}

	public void setMir(MessageInvokeRecord mir) {
		this.mir = mir;
	}

	public void setMethodChains(List<MethodChain> methodChains) {
		this.methodChains = methodChains;
	}

	public void addMethodChain(MethodChain methodChain){
		methodChains.add(methodChain);
	}
	
}
